package middlegen.plugins.ibatis;

public class IWalletUtils {

	public static boolean inTabs(String tableName, String tabs) {
		if (tabs == null || "*".equals(tabs)) {
			return true;
		}
		
		String[] tables = tabs.split(",");
		for (int i = 0; i < tables.length; i++) {
			if (tableName.equalsIgnoreCase(tables[i].trim())) {
				return true;
			}
		}
		
		return false;
	}
}
